T=20; n=[5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5]; a=[329,940,47,611,685,49,98,325,895,227,12,353,326,684,566,32,325,970,320,453,959,979,111,265,279,594,861,756,267,801,968,508,551,506,231,468,341,939,234,598,948,128,440,282,880,390,302,652,678,920,340,435,462,29,980,205,940,136,653,164,81,62,19,728,42,543,578,962,921,181,62,985,123,69,932,684,190,964,609,1000,270,790,810,540,595,264,642,13,769,718,17,971,442,374,816,278,112,45,274,462];